home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-10-14 | 1.2 KB | 40 lines | [TEXT/KAHL] |
- // Simple framework for Macintosh sample code
- //
- // Nick Thompson, DEVSUPPORT
- //
- // This file contains the appleevent related code code for the framework.
- //
- // 9/16/94 nick first cut
-
-
- #ifndef _AEVT_H_
- #define _AEVT_H_
- #include <AppleEvents.h>
-
-
-
- //--------------------------------------------------------------------------------------------
- // utility routines
-
- void InitAEStuff( void ) ;
- Boolean SupportsAEVT(void) ;
- OSErr MyGotRequiredParams(AppleEvent *theAppleEvent) ;
- void DoHighLevelEvent(EventRecord *ev) ;
- void RegisterMyEvents(void) ;
-
-
- //--------------------------------------------------------------------------------------------
- // AppleEvent handlers
-
- pascal OSErr MyAEHandleOAPP(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon) ;
- pascal OSErr MyAEHandleODOC(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon) ;
- pascal OSErr MyAEHandlePDOC(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon) ;
- pascal OSErr MyAEHandleQUIT(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon) ;
-
- //--------------------------------------------------------------------------------------------
- // other routines
- void SendOpenDoc(FSSpec *myFSSpec) ;
- void SendQuitApp( void ) ;
-
-
- #endif